<template>
  <div class="joint-configuration">
    <je-form-item :label="$t('JointConfiguration.submitTeam')" name="submitToTeam">
      <je-switch v-model:value="formState.submitToTeam" mode="checkbox" />
      <span class="prompt">{{ $t('JointConfiguration.submitTeamContext') }}</span>
    </je-form-item>
  </div>
</template>

<script>
  import { defineComponent, ref } from 'vue';
  import { Form, Switch } from '@jecloud/ui';

  export default defineComponent({
    name: 'JointConfiguration',
    components: {
      JeFormItem: Form.Item,
      JeSwitch: Switch,
    },
    props: {
      candidateConfig: {
        type: Object,
        default: () => {
          return {};
        },
      },
    },
    setup(props) {
      //表单数据
      const formState = ref(props.candidateConfig);
      return { formState };
    },
  });
</script>
